Color Math Library
0.9
Library for working with colors and color components
Main Page
Files
File List
colormath.h
1
/*
2
* @file colormath.h
3
*
4
* @author Matthew Matz
5
*
6
* @version 0.9
7
*
8
* @copyright Copyright (C) Parallax, Inc. 2016. See end of file for
9
* terms of use (MIT License).
10
*
11
* @brief This library contains a set of functions to make color space manipulation and math easier.
12
*
13
* @detail Please submit bug reports, suggestions, and improvements to
14
* this code to editor@parallax.com.
15
*/
16
17
#ifndef COLORMATH_H // Prevents duplicate
18
#define COLORMATH_H // declarations
19
20
#if defined(__cplusplus) // If compiling for C++
21
extern
"C"
{
// Compile for C
22
#endif
23
24
25
#include <propeller.h>
26
#include <stdlib.h>
27
38
int
compareRRGGBB(
int
c1,
int
c2);
39
40
53
int
getColorRRGGBB(
int
r,
int
g,
int
b);
54
55
67
int
get8bitColor(
int
c,
char
*i);
68
69
86
int
remapColor(
int
c,
char
*f1,
char
*f2);
87
88
89
90
91
#if defined(__cplusplus)
92
}
// End compile for C block
93
#endif
94
/* __cplusplus */
95
96
#endif // End prevent duplicate forward
97
/* COLORMATH_H */
// declarations block
98
99
100
Generated on Thu Aug 25 2016 13:12:21 for Color Math Library by
1.8.11